//打开协议
export function openAgreement(){
    uni.downloadFile({
      url: 'https://image.srea.org.cn/xcx/pdf/service.pdf',
      success: function (res) {
        var filePath = res.tempFilePath;
        uni.openDocument({
          filePath: filePath,
          fileType: "pdf",
          success: function (res) {
          }
        });
      }
    });
}

//打开政策
export function openPolicy(){
    uni.downloadFile({
      url: 'https://image.srea.org.cn/xcx/pdf/private.pdf',
      success: function (res) {
        var filePath = res.tempFilePath;
        uni.openDocument({
          filePath: filePath,
          fileType: "pdf",
          success: function (res) {
          }
        });
      }
    })
}